package com.zucai365.football.bean;

import java.sql.Timestamp;

import com.wcj.common.bean.WcjBean;

// default package

/**
 * GameFireBean entity. @author MyEclipse Persistence Tools
 */

public class GameFireBean extends WcjBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4451144565717220420L;

	private Long liansaiId;
	private Long liansaiYearId;

	private FootballTeamBean footballTeam;
	private TeamDZBean teamDz;
	private FootballPlayerBean footballPlayer;

	private FootballTeamBean eventFootballTeam;
	private String eventFootballTeamName;
	
	private String personName;
	private Integer eventTime;
	private String event;
	private String eventMsg;
	private Integer lunci;
	
	private Timestamp playTime;
	
	public Long getLiansaiId() {
		return liansaiId;
	}

	public void setLiansaiId(Long liansaiId) {
		this.liansaiId = liansaiId;
	}

	public Long getLiansaiYearId() {
		return liansaiYearId;
	}

	public void setLiansaiYearId(Long liansaiYearId) {
		this.liansaiYearId = liansaiYearId;
	}

	public FootballTeamBean getFootballTeam() {
		return footballTeam;
	}

	public void setFootballTeam(FootballTeamBean footballTeam) {
		this.footballTeam = footballTeam;
	}

	public TeamDZBean getTeamDz() {
		return teamDz;
	}

	public void setTeamDz(TeamDZBean teamDz) {
		this.teamDz = teamDz;
	}

	public FootballPlayerBean getFootballPlayer() {
		return footballPlayer;
	}

	public void setFootballPlayer(FootballPlayerBean footballPlayer) {
		this.footballPlayer = footballPlayer;
	}

	public FootballTeamBean getEventFootballTeam() {
		return eventFootballTeam;
	}

	public void setEventFootballTeam( FootballTeamBean eventFootballTeam ) {
		this.eventFootballTeam = eventFootballTeam;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public Integer getEventTime() {
		return eventTime;
	}

	public void setEventTime(Integer eventTime) {
		this.eventTime = eventTime;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getEventMsg() {
		return eventMsg;
	}

	public void setEventMsg(String eventMsg) {
		this.eventMsg = eventMsg;
	}

	public Integer getLunci() {
		return lunci;
	}

	public void setLunci(Integer lunci) {
		this.lunci = lunci;
	}
	
	private String playerId;

	public String getPlayerId() {
		return playerId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}
	
	private int jerseyNumber;

	public int getJerseyNumber() {
		return jerseyNumber;
	}

	public void setJerseyNumber(int jerseyNumber) {
		this.jerseyNumber = jerseyNumber;
	}

	public String getEventFootballTeamName() {
		return eventFootballTeamName;
	}

	public void setEventFootballTeamName(String eventFootballTeamName) {
		this.eventFootballTeamName = eventFootballTeamName;
	}

	public Timestamp getPlayTime() {
		return playTime;
	}

	public void setPlayTime(Timestamp playTime) {
		this.playTime = playTime;
	}
	
	private String huanrenMsg="";

	public String getHuanrenMsg() {
		//12,换入;19,换出。
		if( this.event.equals( "换入" ) || this.event.equals( "换出" ) ){
			String[] msg = this.eventMsg.split( ";" );
			String[] huanru = msg[0].split( "," );
			String[] huanchu = msg[1].split( "," );
			
			if( this.event.equals( "换入" ) ){
				return huanchu[0] + "" + huanchu[1];
			}else{
				return huanru[0] + "" + huanru[1];
			}
		}
		return huanrenMsg;
	}

	public void setHuanrenMsg(String huanrenMsg) {
		this.huanrenMsg = huanrenMsg;
	}
	
	private String eventStatus;

	public String getEventStatus() {
		return eventStatus;
	}

	public void setEventStatus(String eventStatus) {
		this.eventStatus = eventStatus;
	}
	
}